-
Notifications
You must be signed in to change notification settings - Fork 8.3k
MSPM0 MSPM0G51xx support #99344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
MSPM0 MSPM0G51xx support #99344
Conversation
In flight PR includes necessary SDK and pinctrl hal changes. Signed-off-by: Dylan Philpot <[email protected]>
Adds relevant SOC defines for MSPM0G51xx family. Signed-off-by: Dylan Philpot <[email protected]>
Includes devices tree files for MSPM0G51xx family. Signed-off-by: Dylan Philpot <[email protected]>
Adds dts, yaml, and support files for the MSPM0G5187 launchpad. Signed-off-by: Dylan Philpot <[email protected]>
Adding UNICOMM_Inst_Regs to typedef to avoid compliance errors regarding consistent spacing '*' Signed-off-by: Dylan Philpot <[email protected]>
UART on the MSPM0G51xx family is part of a singular comm peripheral (UNICOMM). Functionality is the same but requires additional overhead of managing the register type and include paths. Signed-off-by: Dylan Philpot <[email protected]>
Adds IOMUX look up table for MSPM0G51xx family to GPIO driver. Signed-off-by: Dylan Philpot <[email protected]>
|
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
dsseng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, please see some minor comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks shared with mspm0g5117.dtsi
Could you please consider moving these definitions into a shared file of extend 5187 from 5117
Please disregard this comment if these SoCs will diverge vastly once more peripherals are added in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a person responsible for this, but maybe this image is of too high resolution. @kartben should the board image be under ca 500 KiB?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be about 50KiB or so
|
| config HAS_MSP_UNICOMM | ||
| bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has no place in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nordicjm can you elaborate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be about 50KiB or so
|
|
||
| leds { | ||
| compatible = "gpio-leds"; | ||
| led0: led_0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is non compliant with the dts requirements
| #if CONFIG_SOC_MSPM0G5187 | ||
| static uint8_t gpiob_pincm_lut[NUM_GPIOB_PIN] = { | ||
| IOMUX_PINCM12, IOMUX_PINCM13, IOMUX_PINCM15, IOMUX_PINCM16, IOMUX_PINCM17, | ||
| IOMUX_PINCM18, IOMUX_PINCM23, IOMUX_PINCM24, IOMUX_PINCM25, IOMUX_PINCM26, | ||
| IOMUX_PINCM27, IOMUX_PINCM28, IOMUX_PINCM29, IOMUX_PINCM30, IOMUX_PINCM31, | ||
| IOMUX_PINCM32, IOMUX_PINCM33, IOMUX_PINCM43, IOMUX_PINCM44, IOMUX_PINCM45, | ||
| IOMUX_PINCM48, IOMUX_PINCM49, IOMUX_PINCM50, IOMUX_PINCM51, IOMUX_PINCM52, | ||
| IOMUX_PINCM56 | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily requesting any action at the moment, but I had to make similar updates for port B and port C pins for MSPM0G3519 SOC with 100-pin package. It could get ugly if people just start adding SOC-specific definitions here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. This keeps expanding for each series. Not nice for longer run, we need better approach.
parthitce
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reorder the commit of serial before using it.
| Pwm | ||
| FILE | ||
| NRF_GPIO_Type | ||
| UNICOMM_Inst_Regs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR. IMO this needs to be separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is the first to introduce UNICOMM_Inst_Regs, so I believe it is relevant. The complaince checks will not pass without it.
| @@ -0,0 +1,16 @@ | |||
| /* SPDX-License-Identifier: Apache-2.0 */ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add copyright, applies to all placed
| config USE_MSPM0_DL_UART | ||
| bool | ||
|
|
||
| config USE_MSPM0_DL_UNICOMM_UART |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never used but defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used in the kconfig of the serial driver to pull in the correct APIs from the hal.
| #if CONFIG_SOC_MSPM0G5187 | ||
| static uint8_t gpiob_pincm_lut[NUM_GPIOB_PIN] = { | ||
| IOMUX_PINCM12, IOMUX_PINCM13, IOMUX_PINCM15, IOMUX_PINCM16, IOMUX_PINCM17, | ||
| IOMUX_PINCM18, IOMUX_PINCM23, IOMUX_PINCM24, IOMUX_PINCM25, IOMUX_PINCM26, | ||
| IOMUX_PINCM27, IOMUX_PINCM28, IOMUX_PINCM29, IOMUX_PINCM30, IOMUX_PINCM31, | ||
| IOMUX_PINCM32, IOMUX_PINCM33, IOMUX_PINCM43, IOMUX_PINCM44, IOMUX_PINCM45, | ||
| IOMUX_PINCM48, IOMUX_PINCM49, IOMUX_PINCM50, IOMUX_PINCM51, IOMUX_PINCM52, | ||
| IOMUX_PINCM56 | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. This keeps expanding for each series. Not nice for longer run, we need better approach.



This PR adds support for the MSPM0G51xx family of SoCs. Adds necessary dts, kconfig, and board files for this family. Also includes updates to the serial driver to account the new communication peripheral in this family: UNICOMM.